package UnitTest.AlgorithmTest.greedyTest;

import Algorithm.greedy.EraseOverlapIntervals;
import TestData.AlgorithmTestData.greedyTestData.EraseOverlapIntervalsTestData;
import org.junit.Test;

/**
 * @author liujun
 * @version 1.0
 * @date 2020/6/8
 * @author—Email liujunfirst@outlook.com
 * @blogURL https://blog.csdn.net/ljfirst
 * @description 无重叠区间
 */
public class EraseOverlapIntervalsTest extends EraseOverlapIntervalsTestData {

    EraseOverlapIntervals era = new EraseOverlapIntervals();

    @Test
    public void TestcountSection() {

        int value = era.countSection(demo01);
        assert value == 4;
        value = era.countSection(demo02);
        assert value == 3;
        value = era.countSection(demo03);
        assert value == 0;
        value = era.countSection(demo04);
        assert value == 0;
        value = era.countSection(demo05);
        assert value == 0;
        value = era.countSection(demo06);
        assert value == 5;
        value = era.countSection(demo07);
        assert value == 0;
    }
}
